﻿Imports Training.Common

Partial Public Class Logout
    Inherits System.Web.UI.Page

    ''' <summary>
    ''' Page load event, clear out the user and kill sessions
    ''' </summary>
    ''' <param name="sender"></param>
    ''' <param name="e"></param>
    ''' <remarks></remarks>
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ' sign out the user
        FormsAuthentication.SignOut()


        ' kill all sessions
        Session.Abandon()

        ' redirect out
        Response.Redirect("login.aspx")
    End Sub

End Class